package com.bw.packcar.utils

import com.bw.packcar.R

fun getStateType(spaceStatus: String): Int {
    var num = 0
    when (spaceStatus) {
        "空闲" -> num = 0
        "已占用" -> num = 1
        "维护中" -> num = 2
    }
    return num
}


fun getStateTypeId(spaceStatus: String): Int {
    var num = R.id.rg_state_k
    when (spaceStatus) {
        "空闲" -> num = R.id.rg_state_k
        "已占用" -> num = R.id.rg_state_z
        "维护中" -> num = R.id.rg_state_w
    }
    return num
}